package com.jc.constant;

import java.util.Arrays;
import java.util.List;

public class PolicyAttachmentTypeConst {



    //JC 附件类型
    // 申请类型常量
    public static final String APPLICATION_TYPE ="APPLICATION_TYPE"; //"批改申请书";
    public static final String NO_CARGO_DAMAGE_GUARANTEE ="NO_CARGO_DAMAGE_GUARANTEE";// "无货损保函";
    public static final String INSURANCE_ATTACHMENT_TRACKING_NUMBER ="ATTACHMENT_TRACKING_NUMBER";// "投保信息附件（快递单号）";
    public static final String INSURANCE_ATTACHMENT_CARGO_DESCRIPTION ="ATTACHMENT_CARGO_DESCRIPTION"; // "投保信息附件（货物描述）";
    public static final String FRAGILE_GOODS_INTERNAL_PACKAGING_PHOTO ="GOODS_INTERNAL_PACKAGING_PHOTO";// "易碎品内包装图片";

















    public static final String APPLICATION = "Application"; //批改申请书
    public static final String MBL = "MBL"; //提单
    public static final String SYS_SCREENSHOT = "SysScreenshot"; //系统截图
    public static final String CTN_INVOICE = "CtnInvoice"; //箱单发票或采购证明
    public static final String FREIGHT_INVOICE = "FreightInvoice"; //运费证明
    public static final String ATT_TYPE_GUARANTEE_LETTER = "guarantee_letter"; // 无货损保函
    public static final String ATT_TYPE_FRAGILE = "Fragile"; // 易碎品内包装图片


    public static final String INVOICE_PACKING_DOC = "InvoicePackingDoc";    //发票或装箱单文件

    public static final String INSURE_ATTACHED_FILE_EXPRESS_NO = "InsureAttachedFileExpressNo"; // 投保信息附件（快递单号）
    public static final String INSURE_ATTACHED_FILE_CARGO_DESC = "InsureAttachedFileCargoDesc"; // 投保信息附件（货物描述）





//    public static List<String> getFileTypeByAttachmentType(String attachmentType) {
//        List<String> list = null;
//        switch (attachmentType) {
//            case APPLICATION: list = Arrays.asList("jpg", "jpeg", "png", "pdf", "doc", "docx", "txt", "xls", "xlsx", "bmp");break;
//            case MBL: break;
//            case CTN_INVOICE: break;
//            case FREIGHT_INVOICE: break;
//            case ATT_TYPE_GUARANTEE_LETTER:
//            case ATT_TYPE_FRAGILE: list = Arrays.asList("jpg", "jpeg", "png", "pdf");break;
//            case INVOICE_PACKING_DOC: break;
//            case INSURE_ATTACHED_FILE_EXPRESS_NO:
//            case INSURE_ATTACHED_FILE_CARGO_DESC: list = Arrays.asList("xls", "xlsx", "doc", "docx", "txt", "rar", "zip", "jpg", "jpeg", "png", "bmp", "pdf");break;
//        }
//        return list;
//    }
//    public static String getAttachmentTypeNameCN(String attachmentType) {
//        String typeNameCN = "";
//        switch (attachmentType) {
//            case APPLICATION: typeNameCN = "批改申请书"; break;
//            case MBL: typeNameCN = "提单"; break;
//            case CTN_INVOICE: typeNameCN = "箱单发票或采购证明"; break;
//            case FREIGHT_INVOICE: typeNameCN = "运费证明"; break;
//            case ATT_TYPE_GUARANTEE_LETTER: typeNameCN = "无货损保函"; break;
//            case ATT_TYPE_FRAGILE: typeNameCN = "易碎品内包装图片"; break;
//            case INVOICE_PACKING_DOC: typeNameCN = "发票或装箱单文件"; break;
//            case INSURE_ATTACHED_FILE_EXPRESS_NO: typeNameCN = "投保信息附件（快递单号）"; break;
//            case INSURE_ATTACHED_FILE_CARGO_DESC: typeNameCN = "投保信息附件（货物描述）"; break;
//        }
//        return typeNameCN;
//    }
}
